<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="p"%>
<%String path=request.getContextPath(); %>
<script>
function rank_addRankGroup(){
	var str=ctx+"/platform/rank/RankGroupPage@addShow.page";
	$w.openDialog({url:str,title:'添加权限组',w:430,h:450});
}
function rank_updateRankGroup(gid){
	var str=ctx+"/platform/rank/RankGroupPage@updateShow.page?groupId="+gid;
	$w.openDialog({url:str,title:'修改权限组',w:430,h:450});
}
function rank_delGroup(){
	$w.confirmMsg("确定删除？", function(){
		$w.execUrl(ctx+"/platform/rank/RankGroupPage@del.page",$w.currForm().serializeArray());
	});
}
</script>

<form action="/platform/rank/RankGroupPage.page" method="post">
<p:hidden bind="pageNum"/>
<p:hidden bind="pageSize_"/>
<div class="easyui-panel ui-queryBar" border="false" data-options="doSize:false">
	<table cellpadding="0" cellspacing="0" style="margin-top:5px">
		<tr>
			<td>&nbsp;权限组名称：</td><td><p:text bind="name"/></td>
			<td>
				&nbsp<a href="#" class="easyui-linkbutton" iconCls="icon_search" onclick="$w.execForm()">查询</a>
			</td>
		</tr>
		</tr>
	</table>
</div>
<div class="easyui-panel ui-toolBar" border="false" data-options="doSize:false">
	<a href="#" class="easyui-linkbutton" iconCls="icon_add" plain="true" onclick="rank_addRankGroup()">添加</a>
	<a href="#" class="easyui-linkbutton" iconCls="icon_del" plain="true" onclick="rank_delGroup()">删除</a>
</div>

<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																					pageNum:<p:write bind="pageNum"/>,
																					pageSize:<p:write bind="pageSize_"/>,
																					total:<p:write bind="pagination.totalCount"/>">
	
	<thead>
		<tr class="ui_th">
			<th width="37" align="center"><input type="checkbox" id="all_box" onclick="$selAllBoxs()"></th>
			<th width="50" align="center">编号</th>
			<th>权限组名称</th>
			<th width="40%">组描述</th>
			<th width="40" align="center">修改</th>
		</tr>
	</thead>
	<tbody>
	<p:iterate id="rank" bind="resultList_">
		<tr class="ui_td">
			<td><input type="checkbox" name="primaryKey_" value="<p:write bind="#rank.id"/>"></td>
			<td><p:write bind="#rank.id"/></td>
			<td><p:write bind="#rank.groupName"/></td>
			<td><p:write bind="#rank.groupDesc"/></td>
			<td><a href="#" onclick="rank_updateRankGroup('<p:write bind="#rank.id"/>')" class="data_edit">修改</a></td>
		</tr>
	</p:iterate>
	</tbody>
</table>
</form>